package com.qulai.amazon_us.domain.amazon_us;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.qulai.common.annotation.Excel;
import com.qulai.common.core.domain.BaseEntity;

/**
 * 上传POST对象 amazon_us_post
 * 
 * @author hunan
 * @date 2025-03-06
 */
public class AmazonUsPost extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    /** 主ASIN */
    @Excel(name = "主ASIN")
    private String mainAsin;

    /** 副ASIN */
    @Excel(name = "副ASIN")
    private String otherAsin;

    /** 图片 */
    @Excel(name = "图片")
    private String image;

    /** 文案 */
    @Excel(name = "文案")
    private String caption;

    /** 店铺 */
    @Excel(name = "店铺")
    private String shop;

    /** 品牌 */
    @Excel(name = "品牌")
    private String brand;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setMainAsin(String mainAsin) 
    {
        if (null != mainAsin && !mainAsin.isEmpty()) {
            this.mainAsin = mainAsin.trim();
        }else {
            this.mainAsin = mainAsin;
        }
    }

    public String getMainAsin() 
    {
        return mainAsin;
    }
    public void setOtherAsin(String otherAsin) 
    {
        if (null != otherAsin && !otherAsin.isEmpty()) {
            this.otherAsin = otherAsin.replaceAll(" ","");
        }else {
            this.otherAsin = otherAsin;
        }
    }

    public String getOtherAsin() 
    {
        return otherAsin;
    }
    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }
    public void setCaption(String caption) 
    {
        this.caption = caption;
    }

    public String getCaption() 
    {
        return caption;
    }
    public void setShop(String shop) 
    {
        this.shop = shop;
    }

    public String getShop() 
    {
        return shop;
    }
    public void setBrand(String brand) 
    {
        this.brand = brand;
    }

    public String getBrand() 
    {
        return brand;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("status", getStatus())
            .append("mainAsin", getMainAsin())
            .append("otherAsin", getOtherAsin())
            .append("image", getImage())
            .append("caption", getCaption())
            .append("shop", getShop())
            .append("brand", getBrand())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
